<?php
	$tool_buttons = array
	(
		'list_button' => array
		(
			'image'=>'btnListLarge.gif', 
			'text'=>LANG_LIST, 
			'url'=>'/users'
		),
//		'edit_roles_button' => array
//		(
//			'image'=>'btnEditLarge.gif', 
//			'text'=>LANG_ROLES, 
//			'url'=>'/users_roles/edit/' . $this->data[$this->name][id]
//		),
		'change_password' => array
		(
			'image'=>'keys.gif', 
			'text'=>LANG_CHANGE_PASSWORD, 
			'url'=>'/users/editpassword/'.$this->data[$this->name][id]
		)
	);

	$this->helpers->html->form('/'.$this->name.'/edit/'.$this->data[$this->name][id]);
	$this->helpers->htmlx->MenuText1(LANG_USERS.': '.LANG_EDIT, "edit.gif");
	$this->helpers->toolbars->Toolbar($tool_buttons);
	echo "<table class='eva'>";
		 $this->helpers->htmlx->hidden('id', $this->data[$this->name][id]);	
		 $this->helpers->htmlx->inputTextRow(LANG_LOGIN, 'login', $this->data[$this->name][login]);
		 $this->helpers->htmlx->comboBoxRow(LANG_LANGUAGE, 'language_id', $this->data[languages], $this->data[$this->name][language_id]);
		 $this->helpers->htmlx->inputTextRow(LANG_RESULTS_PER_PAGE, 'results_per_page', $this->data[$this->name][results_per_page]);
		 $this->helpers->htmlx->inputTextRow(LANG_DEFAULT_PAGE, 'default_page', $this->data[$this->name][default_page]);
		 $this->helpers->htmlx->comboBoxRow(LANG_THEME, 'theme', $this->data[themes], $this->data[$this->name][theme],'onchange = "GetThemePicture(\'/main/EditThemeImage/\'+this.value)"');
		 $this->helpers->htmlx->label(LANG_SCREENSHOT, "class='label' valign = 'top'");
		 echo "<td id='themetd'><img src = /".THEMES.SEPARATOR.$this->data[$this->name][theme].SEPARATOR.'screenshot.gif'."></td>";
	echo "</table>";
	$this->helpers->htmlx->submitTable('submit', $this->name);
	echo "</form>";
?>